package com.hong.weblog.web.controller;

import com.hong.weblog.module.common.aspect.ApiOperatorLog;
import com.hong.weblog.module.common.enums.ResponseCodeEnum;
import com.hong.weblog.module.common.exception.BizException;
import com.hong.weblog.module.common.utils.Response;
import com.hong.weblog.web.model.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

@RestController
@Slf4j
@Api(tags = "测试类")
public class TestController {

    @PostMapping("/test")
    @ApiOperatorLog(description = "测试接口")
    @ApiOperation("测试接口")
    public Response test(@RequestBody @Valid User user) {
        return Response.success();
    }

}
